//
//  DaShiModel.swift
//  约健
//
//  Created by tyh on 2017/10/16.
//  Copyright © 2017年 tyh. All rights reserved.
//
/*
 "id":"2",
 "realname":"刘洋",
 "thumb":"master/thumb/20160726/thumb_20160726095411_1244906345.jpg",
 "thumbsize":"122K",
 "province_id":"1",
 "province_name":"辽宁省",
 "city_id":"1",
 "city_name":"大连",
 "actcate_id":"1",
 "actcate_name":"乒乓球",
 "introduction":"<p>大师</p>",
 "club_id":"1",
 "club_name":"帝壹射箭俱乐部",
 "video":"zjs/mvc.mp4",
 "userid":"1",
 "hits":"469",
 "insert_time":"2016-07-26 09:54:11",
 "listorder":"1",
 "vstate":"1"

 */

import UIKit

class DaShiModel: NSObject {
    var id:NSString!
    var realname:NSString!
    var thumb:NSString!
    var thumbsize:NSString!
    var province_id:NSString!
    var province_name:NSString!
    var city_id:NSString!
    var city_name:NSString!
    var actcate_id:NSString!
    var actcate_name:NSString!
    var introduction:NSString!
    var club_id:NSString!
    var club_name:NSString!
    var video:NSString!
    var userid:NSString!
    var hits:NSString!
    var insert_time:NSString!
    var listorder:NSString!
    var vstate:NSString!
    
    class func DaShiModelWithDict(_ dict:NSDictionary) -> DaShiModel{
        let model = DaShiModel()
        model.setValuesForKeys(dict as! [String: NSObject])
        /*
             model.id = dict.value(forKey: "id") as! NSString!
             model.realname = dict.value(forKey: "realname") as! NSString!
             model.thumb = dict.value(forKey: "thumb") as! NSString!
             model.thumbsize = dict.value(forKey: "thumbsize") as! NSString!
             model.province_id = dict.value(forKey: "province_id") as! NSString!
             model.province_name = dict.value(forKey: "province_name") as! NSString!
             model.city_id = dict.value(forKey: "city_id") as! NSString!
             model.city_name = dict.value(forKey: "city_name") as! NSString!
             model.actcate_id = dict.value(forKey: "actcate_id") as! NSString!
             model.actcate_name = dict.value(forKey: "actcate_name") as! NSString!
             model.introduction = dict.value(forKey: "introduction") as! NSString!
             model.club_id = dict.value(forKey: "club_id") as! NSString!
             model.club_name = dict.value(forKey: "club_name") as! NSString!
             model.video = dict.value(forKey: "video") as! NSString!
             model.userid = dict.value(forKey: "userid") as! NSString!
             model.hits = dict.value(forKey: "hits") as! NSString!
             model.insert_time = dict.value(forKey: "insert_time") as! NSString!
             model.listorder = dict.value(forKey: "listorder") as! NSString!
             model.vstate = dict.value(forKey: "vstate") as! NSString!
 */
        
        return model
        
    }
}
